package com.autoloadcache.demo.autoloadcacheDemo.config;

import com.jarvis.cache.serializer.FastjsonSerializer;
import com.jarvis.cache.serializer.ISerializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AutoloadCacheConfiguration {

    // 使用fastjson序列化
    @Bean
    public ISerializer<Object> autoloadCacheSerializer(){
        return new FastjsonSerializer();
    }
}
